<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Dashboard">
    <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

    <title>码客思</title>
    <link href="${rc.contextPath}/assets/css/bootstrap.css" rel="stylesheet">
    <link href="${rc.contextPath}/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="${rc.contextPath}/assets/css/zabuto_calendar.css">
    <link rel="stylesheet" type="text/css" href="${rc.contextPath}/assets/js/gritter/css/jquery.gritter.css" />
    <link rel="stylesheet" type="text/css" href="${rc.contextPath}/assets/lineicons/style.css">    
    <link href="${rc.contextPath}/assets/css/style.css" rel="stylesheet">
    <link href="${rc.contextPath}/assets/css/style-responsive.css" rel="stylesheet">
    <script src="${rc.contextPath}/assets/js/chart-master/Chart.js"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
  <section id="container" >
      <!--网页头部-->
      <header class="header black-bg">
              <div class="sidebar-toggle-box">
                  <div class="fa fa-bars tooltips" data-placement="right" data-original-title="点击显示隐藏菜单"></div>
              </div>
            <!--logo start-->
            <a href="index.html" class="logo"><b>码客思V1.0</b></a>
            <!--logo end-->
            <div class="nav notify-row" id="top_menu">
                <!--  notification start -->
                <ul class="nav top-menu">
                    <!-- settings start -->
                    <li class="dropdown">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="index.html#">
                            <i class="fa fa-tasks"></i>
                            <span class="badge bg-theme">4</span>
                        </a>
                        <ul class="dropdown-menu extended tasks-bar">
                            <div class="notify-arrow notify-arrow-green"></div>
                            <li>
                                <p class="green">本周你有4条待办没有完成</p>
                            </li>
                            <li>
                                <a href="index.html#">
                                    <div class="task-info">
                                        <div class="desc">DashGum Admin Panel</div>
                                        <div class="percent">40%</div>
                                    </div>
                                    <div class="progress progress-striped">
                                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
                                            <span class="sr-only">40% Complete (success)</span>
                                        </div>
                                    </div>
                                </a>
                            </li>
                            <li>
                                <a href="index.html#">
                                    <div class="task-info">
                                        <div class="desc">Database Update</div>
                                        <div class="percent">60%</div>
                                    </div>
                                    <div class="progress progress-striped">
                                        <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
                                            <span class="sr-only">60% Complete (warning)</span>
                                        </div>
                                    </div>
                                </a>
                            </li>
                            <li>
                                <a href="index.html#">
                                    <div class="task-info">
                                        <div class="desc">Product Development</div>
                                        <div class="percent">80%</div>
                                    </div>
                                    <div class="progress progress-striped">
                                        <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
                                            <span class="sr-only">80% Complete</span>
                                        </div>
                                    </div>
                                </a>
                            </li>
                            <li>
                                <a href="index.html#">
                                    <div class="task-info">
                                        <div class="desc">Payments Sent</div>
                                        <div class="percent">70%</div>
                                    </div>
                                    <div class="progress progress-striped">
                                        <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%">
                                            <span class="sr-only">70% Complete (Important)</span>
                                        </div>
                                    </div>
                                </a>
                            </li>
                            <li class="external">
                                <a href="#">查看所有</a>
                            </li>
                        </ul>
                    </li>
                    <!-- 系统消息列表-->
                    <li id="header_inbox_bar" class="dropdown">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="index.html#">
                            <i class="fa fa-envelope-o"></i>
                            <span class="badge bg-theme">5</span>
                        </a>
                        <ul class="dropdown-menu extended inbox">
                            <div class="notify-arrow notify-arrow-green"></div>
                            <li>
                                <p class="green">你有 5 条系统消息！</p>
                            </li>
                            <li>
                                <a href="index.html#">
                                    <span class="photo"><img alt="avatar" src="assets/img/ui-zac.jpg"></span>
                                    <span class="subject">
                                    <span class="from">Zac Snider</span>
                                    <span class="time">Just now</span>
                                    </span>
                                    <span class="message">
                                        Hi mate, how is everything?
                                    </span>
                                </a>
                            </li>
                            <li>
                                <a href="index.html#">
                                    <span class="photo"><img alt="avatar" src="assets/img/ui-divya.jpg"></span>
                                    <span class="subject">
                                    <span class="from">Divya Manian</span>
                                    <span class="time">40 mins.</span>
                                    </span>
                                    <span class="message">
                                     Hi, I need your help with this.
                                    </span>
                                </a>
                            </li>
                            <li>
                                <a href="index.html#">
                                    <span class="photo"><img alt="avatar" src="assets/img/ui-danro.jpg"></span>
                                    <span class="subject">
                                    <span class="from">Dan Rogers</span>
                                    <span class="time">2 hrs.</span>
                                    </span>
                                    <span class="message">
                                        Love your new Dashboard.
                                    </span>
                                </a>
                            </li>
                            <li>
                                <a href="index.html#">
                                    <span class="photo"><img alt="avatar" src="assets/img/ui-sherman.jpg"></span>
                                    <span class="subject">
                                    <span class="from">Dj Sherman</span>
                                    <span class="time">4 hrs.</span>
                                    </span>
                                    <span class="message">
                                        Please, answer asap.
                                    </span>
                                </a>
                            </li>
                            <li>
                                <a href="index.html#">查看所有</a>
                            </li>
                        </ul>
                    </li>
                    <!-- inbox dropdown end -->
                </ul>
                <!--  notification end -->
            </div>
            <div class="top-menu" onclick="quit()">
            	<ul class="nav pull-right top-menu">
                    <li><a class="logout" href="#">退出系统</a></li>
            	</ul>
            </div>
        </header>
      
      <aside>
          <div id="sidebar"  class="nav-collapse ">
              <!-- sidebar menu start-->
              <ul class="sidebar-menu" id="nav-accordion">
              
              	  <p class="centered"><a href="${rc.contextPath}/sysuser/uploadview.html"  target="frame">
              	  <#if bean.url??>
		                <img src="${rc.contextPath}/sysuser/download.html?id=${bean.id}" class="img-circle" width="60">
		                <#else>
		                <img src="${rc.contextPath}/assets/img/ui-sam.jpg" class="img-circle" width="60">
		                </#if>
              	  </a></p>
              	  
              	  <h5 class="centered">${bean.name}</h5>
              	  	
                  <li class="mt">
                      <a class="active" href="${rc.contextPath}/indexs.html">
                          <i class="fa fa-dashboard"></i>
                          <span>首页</span>
                      </a>
                  </li>

                  <li class="sub-menu">
                      <a href="javascript:;" >
                          <i class="fa fa-desktop"></i>
                          <span>事物管理</span>
                      </a>
                      <ul class="sub">
                          <li><a  href="jrdb.html" target="frame">今日事物</a></li>
                          <li><a  href="buttons.html" target="frame">所有待办</a></li>
                          <li><a  href="panels.html" target="frame">所有事物</a></li>
                      </ul>
                  </li>

                  <li class="sub-menu">
                      <a href="javascript:;" >
                          <i class="fa fa-cogs"></i>
                          <span>系统管理</span>
                      </a>
                      <ul class="sub">
                          <li><a  href="${rc.contextPath}/sysuser/view.html" target="frame">个人信息</a></li>
                          <li><a  href="${rc.contextPath}/sysuser/uploadview.html" target="frame">头像上传</a></li>
                          <li><a  href="${rc.contextPath}/sysuser/securityview.html" target="frame">账号安全</a></li>
                      </ul>
                  </li>
                  

              </ul>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--嵌套页面-->
      <section id="main-content">
          <section class="wrapper">
          <iframe class="J_iframe"  name="frame" id="frame" style="overflow-x:hidden; overflow-y:auto;" width="100%" height="100%" src="${rc.contextPath}/char.html" frameborder="0" seamless></iframe>
          <script type="text/javascript">
			function reinitIframe(){
				var iframe = document.getElementById("frame");
				try{
					var bHeight = iframe.contentWindow.document.body.scrollHeight;
					var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
					var height = Math.max(bHeight, dHeight);
					iframe.height = height;
					console.log(height);
				}catch (ex){}
			}
			window.setInterval("reinitIframe()", 200);
		</script>
          </section>
      </section>
  </section>
  <script src="${rc.contextPath}/assets/js/jquery.js"></script>
    <script src="${rc.contextPath}/assets/js/jquery-1.8.3.min.js"></script>
    <script src="${rc.contextPath}/assets/js/bootstrap.min.js"></script>
    <script class="include" type="text/javascript" src="${rc.contextPath}/assets/js/jquery.dcjqaccordion.2.7.js"></script>
    <script src="${rc.contextPath}/assets/js/jquery.scrollTo.min.js"></script>
    <script src="${rc.contextPath}/assets/js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="${rc.contextPath}/assets/js/jquery.sparkline.js"></script>
    <script src="${rc.contextPath}/assets/js/common-scripts.js"></script>
    <script type="text/javascript" src="${rc.contextPath}/assets/js/gritter/js/jquery.gritter.js"></script>
    <script type="text/javascript" src="${rc.contextPath}/assets/js/gritter-conf.js"></script>
    <script src="${rc.contextPath}/assets/js/sparkline-chart.js"></script>    
	<script src="${rc.contextPath}/assets/js/zabuto_calendar.js"></script>
	<!-- 弹出JS -->
	<script type="text/javascript" src="${rc.contextPath}/layer/layer.js"></script>
  	<script type="text/javascript">
        $(document).ready(function () {
        var unique_id = $.gritter.add({
            title: '&nbsp;&nbsp;&nbsp;&nbsp;系统提示!',
            text: '请尽快完善<a href="http://blacktie.co" target="_blank" style="color:#ffd777">个人信息</a>！',
            image: '',
            sticky: true,
            time: '',
            class_name: 'my-sticky-class'
        });

        return false;
        });
        function quit(){
			var index = layer.confirm('你确定要退出本系统吗？', {
				  btn: ['确定退出','关闭'] //按钮
				}, function(){
					$.post("${rc.contextPath}/quitsys.html",{},function(result){
						layer.close(index);
						location.href="${rc.contextPath}/login.html";
					});
				}, function(){
				   
				});
		}
	</script>
  </body>
</html>
